package day_240507.e4;

public class e4_1 {
    static int count1, count2;

    public static void main(String[] args) {
        for (int n = 2; n <= 100; n++) {
            for (int i = 2; i <= n; i++) {
                if ((n % i == 0) && n != 2) {
                    count1++;
                    break;
                } else if ((i == n - 1) || (n == 2)) {
                    System.out.print(n + "\t");
                    count2++;
                }
            }
        }
        System.out.println("质数共有：" + count2);
    }
}
